package com.wnxy.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
@TableName("t_charging_rules")
@ApiModel(value = "ChargingRules对象", description = "")
public class ChargingRules implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("计费规则id")
    @TableId(value = "rule_id", type = IdType.AUTO)
    @Excel(name = "ID", width = 10)
    private Long ruleId;

    @ApiModelProperty("计费规则名称")
    @Excel(name = "计费规则名称", width = 20, needMerge = true)
    private String chargingName;

    @ApiModelProperty("计费时段，指明计费规则的时间范围。")
    @Excel(name = "计费时段", width = 20, needMerge = true)
    private String chargingPeriod;

    @ApiModelProperty("时段单价，存储计费规则的具体费率数值。")
    @Excel(name = "时段单价", width = 20, needMerge = true)
    private BigDecimal unitPrice;

    @ApiModelProperty("计费规则的状态，0：禁用状态，1：启用状态，默认值为1。")
    @Excel(name = "状态", width = 20, needMerge = true, replace = {"启用_1", "禁用_0"})
    private Integer status;

    @ApiModelProperty("逻辑删除字段，0：未删除")
    @Excel(name = "逻辑删除", width = 20, needMerge = true, replace = {"未删除_0", "已删除_*"})
    private Integer flag;


}
